<template>
  <div id="app">
    <!-- 自定义标题栏 -->
    <Tittlebar />
    
    <!-- 主内容区 -->
    <div class="main-content">
      <router-view />
    </div>
  </div>
</template>

<script>
import Tittlebar from '@/componets/Titlebar.vue'

export default {
  name: 'App',
  data() {
    return {
      name: '1'
    }
  },
  components: { Tittlebar },
  created() {
    let path = this.$route.path
    this.$router.push({ path })
  },
  methods: {
  }
}
</script>

<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

#app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.main-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
</style>